<%-- 
    Document   : FormInputDataMatapelajaran
    Created on : Nov 27, 2012, 2:11:30 PM
    Author     : Cross Over
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="bean.ProsesBean"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Input Data Mapel</title>
        <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
        <form method="post" action="ProsesInputDataMataPelajaran.jsp">
            <%
                String username = (String) session.getAttribute("user");
                if (username == null) {
                    username = "";
                }

            %>
            <div id="wrapper">
                <div id="header-wrapper">
                    <div id="header">
                        <div id="logo">
                            <h1><a href="#">SIDANIS</a></h1>
                            <p> Sistem Daftar Nilai SMA <a href="">FCT</a></p>
                        </div>
                        <div id="menu">
                            <ul>
                                <li><a href="FormInputDataSiswa.jsp">Input Data Siswa</a></li>
                                <li  class="current_page_item"><a href="FormInputDataMatapelajaran.jsp">Input Data Mata Pelajaran</a></li>
                                <li><a href="FormInputDataKaryawan.jsp">Input Data Karyawan</a></li>
                                <li><a href="">Login as  <td><%=username%></td></a></li>
                                <li><a href="Logout.jsp">Logout</a></li>

                            </ul>
                        </div>
                    </div>
                </div>
                <!-- end #header -->
                <div id="page">
                    <div id="page-bgtop">
                        <div id="page-bgbtm">
                            <div id="content">
                                <div class="post">
                                    <h3 class="title"><a href="#">Input Mapel</a></h3>
                                    <div class="entry">
                                        <table width="100%">
                                            <tr>
                                                <td>Kode Mata Pelajaran</td>
                                                <td><input type=text name="kodemapel"></td>
                                            </tr>
                                            <tr>
                                                <td>Mata Pelajaran</td>
                                                <td><input type=text name="namamapel"></td>
                                            </tr>
                                            <tr>
                                                <td>Pengampu</td>
                                                <td><select name="ampu">
                                                        <%
                                                            try {
                                                                ProsesBean PK = new ProsesBean();%>
                                                        <%
                                                            ResultSet temp = PK.getGuru();
                                                            while (temp.next()) {
                                                        %>                                
                                                        <option value="<%=temp.getString(1)%>"><%=temp.getString(1)%></option>                               
                                                        <%            }
                                                        %>
                                                        <%
                                                            } catch (Exception e) {
                                                                e.getMessage();
                                                            }
                                                        %>
                                                    </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><td colspan="2"><input type=submit value="Submit"></td></td>
                                            </tr>
                                        </table>

                                    </div>
                                </div>                            
                            </div>
                            <!-- end #content -->

                            <!-- end #sidebar -->

                        </div>
                    </div>
                </div>
                <!-- end #page -->
            </div>
            <br><br><br><br><br><br> <br><br><br><br><br><br> <br><br><br><br><br><br>
            <div id="footer">
                <p>Copyright (c) 2011 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org">FCT</a>.</p>
            </div>



        </form>
    </body>
</html>
